package GUI;

import javax.swing.*;
import java.awt.*;

public class incorrectLog extends JFrame {
    JPanel panel = new JPanel(new GridLayout(4, 1,20,20));
    JLabel errorLab=new JLabel("用户名或密码错误！");
    JLabel lab2=new JLabel(" ");

    public incorrectLog()
    {this.setSize(200,130);
        panel.setSize(this.getSize());
        panel.add(lab2);
        panel.add(errorLab);
        this.getContentPane().add(BorderLayout.CENTER,panel);
        this.setLayout(new FlowLayout());//流式布局
        this.setLocationRelativeTo(null);//居中
        this.setTitle("在线考试平台");
        this.setVisible(true);
        }
}
